//:C03:PassAddress.cpp
#include <iostream>

void f(int *p)
{
	std::cout << "p = " << p << '\n';
	std::cout << "*p = " << *p << '\n';
	*p = 5;
	std::cout << "p = " << p << '\n';
}

int main(void)
{
	using namespace std;
	int x = 47;
	cout << "x = " << x << '\n';
	cout << "&x = " << &x << '\n';
	f(&x);
	cout << "x = " << x << '\n';
	return 0;
}
